import { httpInstance } from '@/utils/request'

interface SubmitPaymentAPIData {
  project_id: string
  pay_node: '1' | '2' | '3'
  pay_images: string
  pay_time: string
  pay_money: string
  pay_desc: string
}

export function submitPaymentAPI(
  data: SubmitPaymentAPIData,
  token: string,
) {
  return httpInstance.post<
    Record<string, any>,
    SubmitPaymentAPIData
  >(
    'api/Project/projectPaySubmit',
    data,
    { headers: { token } },
  )
}
